﻿using ET_DbCommon.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ET_DbCommon
{
    public static class AllDefineDAL
    {
        public static List<T> GetElementCollection<T>(string sql)
        {
            List<T> list = new List<T>();
            using (var conn = MySqlHelper.GetConnection())
            {
                list = MySQLExt.GetAll<T>(conn, sql).Cast<T>().ToList();
            }
            return list;
        }
    }
}
